how to solve problems on number system